export const TableHead = (props) => {
    const {tableHead} = props;
    const heads = tableHead.map((item,index)=>{
        return (
            <th key={index}>{item}</th>
        )
    });
    return (
        <thead>
          <tr>{heads}</tr>
        </thead>
    )
};